<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<title>导航菜单</title>
<%-- <%@include file="/WEB-INF/jsp/public/commons.jspf"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/style/menuLeft.css"> --%>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Bootstrap Styles-->
<link href="${pageContext.request.contextPath }/assets/css/bootstrap.css" rel="stylesheet" />
<!-- FontAwesome Styles-->
<link href="${pageContext.request.contextPath }/assets/css/font-awesome.css" rel="stylesheet" />
<!-- Morris Chart Styles-->
<link href="${pageContext.request.contextPath }/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="${pageContext.request.contextPath }/assets/css/custom-styles.css" rel="stylesheet" />

<link href='${pageContext.request.contextPath }/assets/css/googleapis.css' rel='stylesheet' type='text/css' />

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/bootstrap/css/icon.css">
</head>
	<body>
	
    <div id="wrapper">
        
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse" style="height:600px">
            	<!-- 显示一级菜单 -->
                <ul class="nav" id="main-menu">
                    <s:iterator value="#application.topPrivilegeList">
                    	<s:if test="#session.user.hasPrivilegeByName(name)">
                    		<li>
                    			<a href="#${name}" class="nav-header collapsed" data-toggle="collapse">
                    			   <i class="glyphicon glyphicon-${name}"></i> ${name}<span class="fa arrow"></span>
                    			</a>
                    			
                    			<!-- 显示二级菜单 -->
								<ul id="${name}" class="nav nav-second-level" >
									 <s:iterator value="children"> 
			                             <s:if test="#session.user.hasPrivilegeByName(name)"> 
			                            	<li>
			                            		<a target="centre" href="${pageContext.request.contextPath}${url}.action">
			                            			<i class="glyphicon glyphicon-${url}"></i>${name}
			                            		</a>
			                            	</li>
			                             </s:if> 
			                         </s:iterator> 
								</ul>
                    		</li>
                    	</s:if>
                    </s:iterator>
                    
                </ul>

            </div>

        </nav>
        <!-- /. NAV SIDE  -->
       <!--  <div id="page-wrapper">
        
            /. PAGE INNER 
        </div> -->
        <!-- /. PAGE WRAPPER  -->
    </div>
    <!-- /. WRAPPER  -->
    <!-- JS Scripts-->
    <!-- jQuery Js -->
    <script src="${pageContext.request.contextPath }/assets/js/jquery-1.10.2.js"></script>
    <!-- Bootstrap Js -->
    <script src="${pageContext.request.contextPath }/assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="${pageContext.request.contextPath }/assets/js/jquery.metisMenu.js"></script>
    
    <script src="${pageContext.request.contextPath }/assets/js/morris/raphael-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath }/assets/js/morris/morris.js"></script>
    <!-- Custom Js -->
    <script src="${pageContext.request.contextPath }/assets/js/custom-scripts.js"></script>	
	
	
	
	
	
	
	
	
	
	
	
	
<%-- 		<div class="row col-md-3">
		<!-- 显示一级菜单 -->
		<ul id="main-nav" class="nav nav-tabs nav-stacked" style="width: 173px;">
 		<s:iterator value="#application.topPrivilegeList">
			<s:if test="#session.user.hasPrivilegeByName(name)"> 
				<li>
					<a href="#${name}" class="nav-header collapsed" data-toggle="collapse">
					<i class="glyphicon glyphicon-${name}"></i>
					${name}
					<span class="pull-right glyphicon glyphicon-chevron-down"></span>
					</a>
					<!-- 显示二级菜单 -->
					<ul id="${name}" class="nav nav-list collapse secondmenu" style="height: 0px;">
						 <s:iterator value="children"> 
                             <s:if test="#session.user.hasPrivilegeByName(name)"> 
                            	<li>
                            		<a target="centre" href="${pageContext.request.contextPath}${url}.action">
                            			<i class="glyphicon glyphicon-${url}"></i>${name}
                            		</a>
                            	</li>
                             </s:if> 
                         </s:iterator> 
					</ul>
				</li>
 			</s:if>
		</s:iterator>	
   </ul>
</div> --%>
</body>
</html>